/**
 * 一些公共的Api
 **/
function getAllAppType() {
    return new Promise((resolve, reject) => {
        $.ajax({
            type: "GET",
            url: '/app/type/all',
            contentType: 'application/x-www-form-urlencoded',
            dataType: 'json',
            success: function (req) {
                if (req.code === '200') {
                    let userList = req.data
                    resolve(userList)
                } else {
                    reject(req.msg)
                }
            },
            error: function (e) {
                layer.msg(e.msg);
                reject(e.msg)
            }
        })
    });
}

function initExtensionUser(data) {

}